home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 April / Disc 2 / PCUSER0402D2.iso / software / utils / files / wincron.exe / data1.cab / Sample_Scripts / proxy_test_01.tg < prev    next >
Encoding:
Text File  |  2001-10-20  |  965 b   |  32 lines

  1. ##########################################################################
  2. ## proxy_test_01.tg
  3. # This script loads the physical system service then connects to it.
  4. # After connecting to the proxy service, we ping it to make sure its listening.
  5. # Finally we ask it to load a script and run it.
  6. # Note: We load a our sample scripts relative to the real SCRIPT_DIR
  7. {
  8.     -name proxy_test_01
  9.     -start
  10.     -stop
  11.  
  12.     # tell user what we are doing
  13.     -action -print Proxy Initialize Script!
  14.  
  15.     # load the physical system service
  16.     -action -proxy -initialize
  17.  
  18.     # connect to the port/socket of the proxy service
  19.     -action -proxy -connect
  20.  
  21.     # ask the proxy for current state info (UI hints)
  22.     -action -proxy -state
  23.  
  24.     # ping the proxy and make sure he is awake
  25.     -action -proxy -ping
  26.  
  27.     # load the scipt you want to run
  28.     -action -proxy -load "%TG.SCRIPT_DIR%..\Sample Scripts\"proxy_hello_01.tg
  29.  
  30.     # send a start command to run the script
  31.     -action -proxy -start
  32. }